﻿<Window x:Class="ComicReader.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ComicReader="clr-namespace:ComicReader"
        xmlns:Helpers="clr-namespace:ComicReader.Helpers"
        xmlns:Controls="clr-namespace:ComicReader.Controls"
        Title="Comic.Reader" 
        MinHeight="300" 
        MinWidth="300" 
        Height="728" Width="960"
        Background="{DynamicResource MainBackgroundBrush}"
        ResizeMode="CanResizeWithGrip">

    <Window.Resources>



    </Window.Resources>


    <Window.CommandBindings>
        <CommandBinding Command="{x:Static ComicReader:Commands.OpenArchive}" 
                        CanExecute="CommandBinding_CanExecuteOpenArchive"
                        Executed="CommandBinding_ExecutedOpenArchive"

      />

        <CommandBinding Command="{x:Static ComicReader:Commands.ConvertDirectory}" 
                        CanExecute="CommandBinding_CanExecuteConvertDirectory"
                        Executed="CommandBinding_ExecutedConvertDirectory"

      />
        
    </Window.CommandBindings>


    <DockPanel>

        <!-- Header Area-->
        <Border Height="50" DockPanel.Dock="Top" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1" x:Name="HeaderBorder" Padding="10,0,10,0" >
            <DockPanel x:Name="Header" >
                <TextBlock xml:space="preserve" Opacity="1" FontFamily="Segoe UI" FontSize="24" FontStretch="Normal" FontWeight="Light" TextWrapping="Wrap" Foreground="{DynamicResource HeaderFontColor}" VerticalAlignment="Bottom" Margin="0,0,0,5"><Run Foreground="#FFCFD3DA">Comic</Run><Run FontWeight="Normal">.Reader</Run></TextBlock>
            </DockPanel>
        </Border>

        <!-- Menu Area -->
        <Border x:Name="MenuBorder" VerticalAlignment="Top" DockPanel.Dock="Top" Margin="0,5,0,5">
            <Menu VerticalAlignment="Bottom" Margin="5,0,0,0" Style="{DynamicResource MenuStyle}">
                <MenuItem Header="File"  Style="{DynamicResource MenuItemStyle}">
                    <MenuItem Command="{x:Static ComicReader:Commands.OpenArchive}"  Style="{DynamicResource MenuItemStyle}"/>
                </MenuItem>
                <MenuItem Header="Tools"  Style="{DynamicResource MenuItemStyle}">
                    <MenuItem Command="{x:Static ComicReader:Commands.ConvertDirectory}"  Style="{DynamicResource MenuItemStyle}"/>
                </MenuItem>

            </Menu>
        </Border>

        <StatusBar x:Name="statusBar" DockPanel.Dock="Bottom"></StatusBar>
        <Frame x:Name="ContentFrame" NavigationUIVisibility="Hidden"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></Frame>
    </DockPanel>
</Window>
